package cnu.ldc.pac;

public class Producer extends Thread {
	private int num;
	private Storage storage;
	public void run() {

		storage.produce(num);

	}
	public Producer(int num, Storage storage) {
		super();
		this.num = num;
		this.storage = storage;
	}
	public Producer() {}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public Storage getStorage() {
		return storage;
	}
	public void setStorage(Storage storage) {
		this.storage = storage;
	}


}
